.class public Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;
.super Lcom/waiqin365/lightapp/kehu/view/CMCustomView;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/view/View;

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;

.field private f:Z

.field private g:Ljava/lang/String;

.field private h:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 10

    const/4 v2, 0x1

    const/high16 v3, 0x41800000    # 16.0f

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->f:Z

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->g:Ljava/lang/String;

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->h:Landroid/content/Context;

    const-string/jumbo v0, "layout_inflater"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f030065

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v0, 0x7f0c0083

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->c:Landroid/view/View;

    const v0, 0x7f0c0086

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->d:Landroid/view/View;

    const v0, 0x7f0c005a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->e:Landroid/view/View;

    const v0, 0x7f0c02bc

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/bz;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/bz;-><init>(Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    const v0, 0x7f0c02bb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->d:Landroid/view/View;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/ca;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/ca;-><init>(Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-eqz p2, :cond_3

    sget-object v0, Lcom/fiberhome/gaea/client/base/g;->customText:[I

    invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result v1

    const/4 v2, 0x6

    invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result v2

    const/4 v3, 0x2

    const v4, -0xe5e5e6

    invoke-virtual {v0, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v3

    const/4 v4, 0x4

    const v5, -0x333334

    invoke-virtual {v0, v4, v5}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v4

    const/4 v5, 0x7

    const v6, -0x99999a

    invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v5

    const/4 v6, 0x0

    invoke-virtual {v0, v6}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    const/4 v7, 0x3

    invoke-virtual {v0, v7}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;

    move-result-object v7

    const/4 v8, 0x5

    invoke-virtual {v0, v8}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;

    move-result-object v8

    iget-object v9, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v9, v1}, Landroid/widget/EditText;->setTextSize(F)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextSize(F)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v3}, Landroid/widget/EditText;->setTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v4}, Landroid/widget/EditText;->setHintTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setTextColor(I)V

    if-eqz v6, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v6}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz v7, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v7}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    :cond_1
    if-eqz v8, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    :cond_3
    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->f:Z

    return v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->d:Landroid/view/View;

    return-object v0
.end method


# virtual methods
.method public c()Ljava/lang/CharSequence;
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->p:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->l:Ljava/lang/String;

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public c_()Z
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->d()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->g:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public d()Ljava/lang/CharSequence;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public n()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public setBottomLineStatus(Z)V
    .locals 2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->e:Landroid/view/View;

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_0
    const/16 v0, 0x8

    goto :goto_0
.end method

.method public setContentColor(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setTextColor(I)V

    return-void
.end method

.method public setContentSize(F)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setTextSize(F)V

    return-void
.end method

.method public setEdit(Z)V
    .locals 2

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->f:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setFocusable(Z)V

    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSingleLine(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->c:Landroid/view/View;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->d:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSingleLine(Z)V

    goto :goto_0
.end method

.method public setHint(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setInputType(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setInputType(I)V

    return-void
.end method

.method public setLabel(Ljava/lang/CharSequence;)V
    .locals 7

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->l:Ljava/lang/String;

    :cond_0
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->p:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->h:Landroid/content/Context;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    const/4 v2, 0x2

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    const v5, 0x7f020400

    new-instance v6, Lcom/waiqin365/lightapp/kehu/view/cb;

    invoke-direct {v6, p0}, Lcom/waiqin365/lightapp/kehu/view/cb;-><init>(Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;)V

    invoke-static/range {v0 .. v6}, Lcom/fiberhome/gaea/client/d/g;->a(Landroid/content/Context;Landroid/widget/TextView;ILjava/lang/String;Ljava/lang/String;ILcom/fiberhome/gaea/client/d/j;)V

    :cond_1
    return-void
.end method

.method public setLabelColor(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V

    return-void
.end method

.method public setLabelSize(F)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextSize(F)V

    return-void
.end method

.method public setMaxlen(Ljava/lang/String;)V
    .locals 5

    const/4 v4, 0x0

    invoke-static {p1, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    if-lez v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    const/4 v2, 0x1

    new-array v2, v2, [Landroid/text/InputFilter;

    new-instance v3, Landroid/text/InputFilter$LengthFilter;

    invoke-direct {v3, v0}, Landroid/text/InputFilter$LengthFilter;-><init>(I)V

    aput-object v3, v2, v4

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setFilters([Landroid/text/InputFilter;)V

    :cond_0
    return-void
.end method

.method public setMustinput(Ljava/lang/String;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->setMustinput(Ljava/lang/String;)V

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->f:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->c:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public setValue(Ljava/lang/String;)V
    .locals 2

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->g:Ljava/lang/String;

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->a:Landroid/widget/EditText;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->g:Ljava/lang/String;

    goto :goto_0
.end method

.method public setViewIgnore(Z)V
    .locals 1

    if-eqz p1, :cond_0

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/NumberTextView_vertical;->setVisibility(I)V

    goto :goto_0
.end method
